<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改【请填写功能名称】')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-interest-edit" th:object="${poi}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label is-required">POI ID：</label>
                    <div class="col-sm-8">
                        <input name="poiId" th:field="*{poiId}" class="form-control" type="text" required>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">城市id：</label>
                    <div class="col-sm-8">
                        <input name="cityId" th:field="*{cityId}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">城市名：</label>
                    <div class="col-sm-8">
                        <input name="cityName" th:field="*{cityName}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">中文地址：</label>
                    <div class="col-sm-8">
                        <textarea name="addressCn" class="form-control">[[*{addressCn}]]</textarea>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">本地地址：</label>
                    <div class="col-sm-8">
                        <textarea name="addressLocal" class="form-control">[[*{addressLocal}]]</textarea>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">坐标经度：</label>
                    <div class="col-sm-8">
                        <input name="lng" th:field="*{lng}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">坐标纬度：</label>
                    <div class="col-sm-8">
                        <input name="lat" th:field="*{lat}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label is-required">POI来源：</label>
                    <div class="col-sm-8">
                        <input name="poiSource" th:field="*{poiSource}" class="form-control" type="text" required>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label is-required">POI来源方的ID：</label>
                    <div class="col-sm-8">
                        <input name="poiSourceId" th:field="*{poiSourceId}" class="form-control" type="text" required>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label is-required">完善标志 0未完善 1已完善：</label>
                    <div class="col-sm-8">
                        <input name="prefectFlag" th:field="*{prefectFlag}" class="form-control" type="text" required>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">POI的级别重要程度 方便行程规划：</label>
                    <div class="col-sm-8">
                        <input name="level" th:field="*{level}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">其他中文名称：</label>
                    <div class="col-sm-8">
                        <textarea name="nameAlias" class="form-control">[[*{nameAlias}]]</textarea>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">描述：</label>
                    <div class="col-sm-8">
                        <textarea name="description" class="form-control">[[*{description}]]</textarea>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/interest";
        $("#form-interest-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-interest-edit').serialize());
            }
        }
    </script>
</body>
</html>
